package com.lapian.designmode.flyweight.test.test_d;

public class ConcreteRoleD extends AbstractRoleD{
    private String type="";

    public ConcreteRoleD(String type) {
        this.type=type;
    }

    @Override
    public void use(UserD userD) {
        System.out.println("什么"+type+"的"+userD.getName()+"使用了魂技");
    }
}
